package com.rk.admin.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rk.admin.domain.Particle;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ParticleMapper extends BaseMapper<Particle> {


    /**
     * 添加本科生文章
     * @param particle
     * @return
     */
    public int insertParticleben(Particle particle);


    /**
     * 添加本科生文章
     * @param particle
     * @return
     */
    public int insertParticleyan(Particle particle);

    /**
     * 通过id修改
     * @param particle
     * @return
     */
    public int updatebyid(Particle particle);


    /**
     * 通过id查找
     * @return
     */
    public Particle queryById(Integer id);

    /**
     *
     * @param count
     * @return
     */
    public List<Particle> findcount(Integer count);
}
